﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.UI;

namespace TimeScheduling
{
    public partial class TimeScheduling : Form
    {
        public TimeScheduling()
        {
            InitializeComponent();

            RadGridView gridViewControl = this.radMultiColumnComboBox1.EditorControl;
            gridViewControl.ReadOnly = false;
            gridViewControl.MasterTemplate.AllowEditRow = true;

            DataTable table = new DataTable();
            table.Columns.Add("TextBox", typeof(DateTime));
            table.Columns.Add("MaskBox", typeof(DateTime));

            table.Rows.Add(DateTime.Now, DateTime.Now);
            table.Rows.Add(DateTime.Now, DateTime.Now);
            table.Rows.Add(DateTime.Now, DateTime.Now);

            radMultiColumnComboBox1.DataSource = table;
        }

        private void radMultiColumnComboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            radMultiColumnComboBox1_DropDownOpened(sender, e);
        }

        private void radMultiColumnComboBox1_Click(object sender, EventArgs e)
        {

        }

        private void radMultiColumnComboBox1_DropDownClosing(object sender, RadPopupClosingEventArgs args)
        {

        }

        private void radMultiColumnComboBox1_DropDownOpened(object sender, EventArgs e)
        {

        }
    }
}
